﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;

namespace ThousandFunClient.model
{
    public class SendCMDConfig
    {

        public SendCMDConfig(XElement ePortA)
        {
            XElement esendCMD = ePortA.Element("CMD");
            sendCMD = esendCMD==null?"":esendCMD.Value;
            XElement einterval = ePortA.Element("Interval");
            interval = einterval== null?"":einterval.Value;

            XElement eloggerName = ePortA.Element("LoggerName");
            loggerName = eloggerName==null?"": eloggerName.Value;
            
        }
        public string SendCMD
        {
            get { return sendCMD; }
            set { sendCMD = value; }
        }

        public string Interval
        {
            get { return interval; }
            set { interval = value; }
        }

        public string LoggerName
        {
            get { return loggerName; }
            set { loggerName = value; }
        }

        public string ReadTimeout
        {
            get { return readTimeout; }
            set { readTimeout = value; }
        }

        private string readTimeout = "";
        private string sendCMD = "";
        private string interval = "";
        private string loggerName = "";

    }
}
